Ignore build-time test failures on mipsel
authorSimon McVittie <smcv@debian.org>
Mon, 4 Jul 2016 09:06:55 +0000 (10:06 +0100)
committerSimon McVittie <smcv@debian.org>
Mon, 4 Jul 2016 09:06:55 +0000 (10:06 +0100)
"ostree pull" intermittently fails with a bus error on at least some
mipsel CPUs, and applying gdb to the resulting core dump does not produce
any useful information. Debugging help would be appreciated. (Mitigates:
#827473)

debian/changelog
debian/test.sh

index 028f6e85edbe6554555928a2c91ee6fc98b0bf84..f689d8b8cfc9606add136423c279b77ea6482c1f 100644 (file)
@@ -1,3 +1,13 @@
+ostree (2016.6-3) UNRELEASED; urgency=medium
+
+  * Ignore build-time test failures on mipsel. "ostree pull"
+    intermittently fails with a bus error on at least some mipsel CPUs,
+    and applying gdb to the resulting core dump does not produce any
+    useful information. Debugging help would be appreciated.
+    (Mitigates: #827473)
+
+ -- Simon McVittie <smcv@debian.org>  Mon, 04 Jul 2016 09:55:09 +0100
+
 ostree (2016.6-2) unstable; urgency=medium
 
   * d/p/tests-Improve-check-for-proc-cmdline-kargs.patch: add patch from
index e2ac075c65e5c18ae936ed62ab98ddf0ea22f521..e40351165846a8cbe3d6b6e6731cbeb3a47fc5e5 100755 (executable)
@@ -2,6 +2,14 @@
 
 set -e
 
+ignore=
+
+case "$DEB_HOST_ARCH" in
+    (mipsel)
+        ignore=yes
+        ;;
+esac
+
 export VERBOSE=1
 
 try_tests=5
@@ -9,8 +17,8 @@ try_tests=5
 failed=0
 make check || failed=1
 
-if [ "$failed" -gt 0 ]; then
-    echo "Test failed! Checking how reproducible it is..."
+if [ "$failed" -gt 0 ] || [ -n "$ignore" ]; then
+    [ "$failed" -eq 0 ] || echo "Test failed! Checking how reproducible it is..."
     for i in $(seq 1 "$(( $try_tests - 1 ))"); do
         if ! make check; then
             failed=$(( $failed + 1 ))
@@ -28,7 +36,11 @@ fi
 
 if [ "$failed" -gt 0 ]; then
     echo "Failed $failed out of $try_tests test runs"
-    exit 1
+    if [ -n "$ignore" ]; then
+        exit 1
+    else
+        echo "Ignoring test failure for this architecture"
+    fi
 fi
 
 exit 0